import koaRouter from "koa-router";
import { getUserInfo } from "../controller/user";
const userRouter = new koaRouter({ prefix: "/user" });
userRouter.get("/index", getUserInfo.goindex);
userRouter.get("/gobh", getUserInfo.gobh);
userRouter.get("/gohn", getUserInfo.gohn);
userRouter.get("/gohnn", getUserInfo.gohnn);
userRouter.get("/gohnnn", getUserInfo.gohnnn);
userRouter.get("/gohnnnn", getUserInfo.gohnnnn);
userRouter.get("/gonbh", getUserInfo.gonbh);
userRouter.get("/", getUserInfo.gornbh);
userRouter.post("/getcode", getUserInfo.getCode);
userRouter.get("/gochatgpt", getUserInfo.gochatgpt);
userRouter.post("/register", getUserInfo.register);
userRouter.post("/login", getUserInfo.login);
userRouter.get("/getuserinfo", getUserInfo.getuserinfo);
userRouter.post("/modifynavator", getUserInfo.modifynavator);
userRouter.post("/modifynickname", getUserInfo.modifynickname);
userRouter.post("/modifypassword", getUserInfo.modifypassword);
userRouter.post("/addsearchlog", getUserInfo.addsearchLog);
userRouter.post("/getsearchlog", getUserInfo.getsearchLog);
userRouter.post("/delsearchLog", getUserInfo.delsearchLog);
userRouter.post("/fabudailyrecord", getUserInfo.fabudailyrecord);
userRouter.get("/getfabudailyrecord", getUserInfo.getfabudailyrecord);
userRouter.post("/addfocus", getUserInfo.addfocus);
userRouter.post("/cancelfocus", getUserInfo.cancelfocus);
userRouter.get("/getfocuslist", getUserInfo.getfocuslist);
userRouter.post("/adddianzan", getUserInfo.adddianzan);
userRouter.post("/canceldianzan", getUserInfo.canceldianzan);
userRouter.get("/getdianzanlist", getUserInfo.getdianzanlist);
userRouter.post("/addshoucang", getUserInfo.addshoucang);
userRouter.post("/cancelshoucang", getUserInfo.cancelshoucang);
userRouter.get("/getshoucanglist", getUserInfo.getshoucanglist);
userRouter.post("/addhistory", getUserInfo.addhistory);
userRouter.get("/gethistorylist", getUserInfo.gethistorylist);
userRouter.get("/getsddzInfo", getUserInfo.getsddzInfo);
userRouter.post("/addpl", getUserInfo.addpl);
userRouter.get("/getplInfo", getUserInfo.getplInfo);
userRouter.post("/passfbuinfo", getUserInfo.passfbuinfo);
userRouter.post("/yjtg", getUserInfo.yjtg);
userRouter.post("/getAllNewsList", getUserInfo.getAllNewsList);
export { userRouter };
